﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 设计模式练习
{
    class Program
    {
        static void Main(string[] args)
        {
            var operation = OperationFactory.CreateOperate("+");

            Console.WriteLine("请输入A");
            operation.NumberA = Convert.ToDouble(Console.ReadLine());
            Console.WriteLine("请输入B");
            operation.NumberB = Convert.ToDouble(Console.ReadLine());

            Console.WriteLine(operation.GetResult());
            Console.Read();
        }
    }
}
